<!--
 * @Author: szx
 * @Date: 2022-05-25 18:33:15
 * @LastEditTime: 2022-05-25 19:08:00
 * @Description: 
 * @FilePath: \learn\测试\index.html
-->
<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            height: 100vh;
            background-color: cyan;
            display: flex;
            justify-content: center;
            align-items: center;

        }

        #container {
            background-color: plum;
            width: 100.5px;
            height: 100.5   px;

        }
    </style>
</head>

<body>
    <div id="container"></div>
    <script>
        const container = document.querySelector('#container')
        container.addEventListener('mouseenter', (e) => {
            console.log('11')
        });
    </script>
</body>

</html>